# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>

pkgname=python-oslo-log
pkgver=5.2.0
_commit=16a8a421616ca5aeef670b4e2d47eed2e2950868
pkgrel=2
pkgdesc="Oslo Logging Library"
arch=('any')
url="https://pypi.python.org/pypi/oslo.log/$pkgver"
license=('Apache')
depends=('python-pbr' 'python-oslo-config' 'python-oslo-context' 'python-oslo-i18n'
         'python-oslo-utils' 'python-oslo-serialization' 'python-debtcollector' 'python-pyinotify'
         'python-dateutil')
makedepends=('git' 'python-setuptools')
checkdepends=('python-oslotest')
source=("git+https://github.com/openstack/oslo.log.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd oslo.log
  python setup.py build
}

check() {
  cd oslo.log
  stestr run
}

package() {
  cd oslo.log
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
